@model IEnumerable<FormInputProject.Models.Record>

@{
    ViewBag.Title = "Index";
}

<h2>Index</h2>

<p>
    @Html.ActionLink("Create New", "Create")
</p>
<table>
    <tr>
        <th></th>
        <th>
            Point
        </th>
        <th>
            OriginValue
        </th>
        <th>
            CalculateValue
        </th>
        <th>
            WriteTime
        </th>
        <th>
            Creator
        </th>
        <th>
            Modified
        </th>
        <th>
            ModifiedBy
        </th>
    </tr>

@foreach (var item in Model) {
    <tr>
        <td>
            @Html.ActionLink("Edit", "Edit", new { id=item.RecordId }) |
            @Html.ActionLink("Details", "Details", new { id=item.RecordId }) |
            @Html.ActionLink("Delete", "Delete", new { id=item.RecordId })
        </td>
        <td>
			@Html.DisplayTextFor(_ => item.Point).ToString()
        </td>
        <td>
			@item.OriginValue
        </td>
        <td>
			@item.CalculateValue
        </td>
        <td>
			@String.Format("{0:g}", item.WriteTime)
        </td>
        <td>
			@Html.DisplayTextFor(_ => item.Creator).ToString()
        </td>
        <td>
			@String.Format("{0:g}", item.Modified)
        </td>
        <td>
			@Html.DisplayTextFor(_ => item.ModifiedBy).ToString()
        </td>
    </tr>
}

</table>


